//
//  MyDrawView.h
//  TQLSmartPen
//
//  Created by tql on 2018/5/28.
//  Copyright © 2018年 tqlZj. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol  getDrawImageDelegate <NSObject>

- (void)getDrawImage:(UIImage*)drawImage;
@end

@interface MyDrawView : UIView

@property (nonatomic, strong) UIColor *strokeColor;
@property (nonatomic, weak)id <getDrawImageDelegate>degelete;
@property (nonatomic, assign) BOOL hasDraw;
@property (nonatomic, strong) UIImage *drawImage;
//@property (strong, nonatomic) CAShapeLayer *shapeLayer;
@property (nonatomic, assign) BOOL isChangePage;
//@property (nonatomic, assign)BOOL isEarse;

- (void)erase;
- (void)startWithScale:(float)scale
               offsetX:(float)offsetX
               offsetY:(float)offsetY
              penWidth:(int)penWidth
                     x:(float)pointX
                     y:(float)pointY
                 force:(int)force;
- (void)moveWithScale:(float)scale
              offsetX:(float)offsetX
              offsetY:(float)offsetY
             penWidth:(int)penWidth
                    x:(float)pointX
                    y:(float)pointY
                force:(int)force;

- (void)endWithScale:(float)scale
            offsetX:(float)offsetX
            offsetY:(float)offsetY
           penWidth:(int)penWidth
                  x:(float)pointX
                  y:(float)pointY
              force:(int)force;
- (void)end;
@end
